//
//  HeadPicName.m
//  CarFace
//
//  Created by dlios on 15-3-27.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HeadPicName.h"

@implementation HeadPicName
- (void)dealloc
{
    [_titleLabel release];
    [_showAllButton release];
    [_picCount release];
    [super dealloc];
    
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, self.frame.size.width/3-10, self.frame.size.height)];
//        self.titleLabel.backgroundColor = [UIColor yellowColor];
        [self addSubview:self.titleLabel];
         [_titleLabel release];
        
        self.picCount = [[UILabel alloc]initWithFrame:CGRectMake(self.frame.size.width/3, 0, self.frame.size.width/5, self.frame.size.height)];
//        self.picCount.backgroundColor = [UIColor greenColor];
        [self addSubview:self.picCount];
        [_picCount release];
        
        
        self.showAllButton = [UIButton buttonWithType:UIButtonTypeSystem];
        self.showAllButton.frame = CGRectMake(self.frame.size.width/3*2, 0, self.frame.size.width/3-10, self.frame.size.height);
//        self.showAllButton.backgroundColor = [UIColor redColor];
        [self addSubview:self.showAllButton];
        [_showAllButton release];
        
        
        
    }
    return self;
    
}





@end
